public class Main01Java {

    public static final String name = "LC";

    public static void main(String[] args) {
        System.out.println("Hello,world!" + name);
    }

    public int max(int a, int b) {

        Animal animal = new Dog();
        if (animal instanceof Dog){
            ((Dog) animal).dig();
        }

        return Math.max(a, b);
    }

    public String getColorStr(Color color) {
        String str = null;
        switch (color) {
            case RED:
            case ORANGE:
            case YELLOW:
                str = "暖色调";
                break;
            case GREEN:
                str = "中色调";
                break;
            case BLUE:
                str = "冷色调";
                break;
        }
        return str;
    }

}
